package com.dk.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;
    @Data
    @TableName("tb_cars")
    public class TBCars implements Serializable {
        @TableId(value = "id",type= IdType.AUTO)
        private Long id;

        @TableField("name")
        private String name;

        @TableField("brand_id")
        private String brandId;



        @TableField("price")
        private BigDecimal price;

        @TableField("user_id")
        private String userId;

        @TableField("starttime")
        @JsonFormat(pattern = "yyyy-MM-dd",timezone = "GMT+8")
        private Date starttime;

        @TableField("picture")
        private String picture;

        @TableField("reference_price")
        private BigDecimal referencePrice;

        @TableField("new_price")
        private BigDecimal newPrice;

        @TableField("state")
        private String state;

        @TableField("source")
        private String source;

        @TableField("phone")
        private String phone;


        @TableField("models_id")
        private Long modelsId;

}
